package stylistcrm.core.services.security.exception;

/**
 * Created by yanwc on 2016/9/17.
 */

import stylistcrm.core.services.security.dto.NavigationDto;

/**
 * 导航菜单构造时闭环异常
 */
public class NavigationClosedLoopException extends  Exception {
    public NavigationClosedLoopException(NavigationDto target) {
       super(target.getName()+":"+target.getCode()+"菜单出现循环引用异常");
    }

    public NavigationClosedLoopException(String message) {
        super(message);
    }

    public NavigationClosedLoopException(String message, Throwable cause) {
        super(message, cause);
    }
}
